package com.lsz.intelligentflowerwatering.viewmodel

import android.app.Application
import android.bluetooth.BluetoothAdapter
import android.bluetooth.BluetoothManager
import android.content.Context
import android.location.LocationManager
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.AndroidViewModel
import kotlinx.coroutines.flow.MutableStateFlow

class MainViewModel(application: Application) : AndroidViewModel(application) {

    companion object{
        val tag = "the process"
    }

    //导航栏标题
    val navTitles: MutableList<String> = mutableStateListOf("蓝牙设置", "Wifi设置", "输入密码", "正在配置设备...")

    //当前栈的位置（compose的导航没有导航栏，所以要自己实现导航切换的效果）
    var count: Int by mutableStateOf(0)

    //权限授予情况
    var permissionState = MutableStateFlow(true)

}